package com.heiliushu.baseWeb.domain.entity;

import java.util.HashSet;
import java.util.Set;

public class UserInfo extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1106584084637280653L;
	
	public UserInfo() {
		super();
	}
	
	public UserInfo(User user){
		if(user != null){
			this.setUserId(user.getUserId());
			this.setLoginName(user.getLoginName());	
			this.setPassword(user.getPassword());
			this.setName(user.getName());
			this.setStatus(user.getStatus());
			this.setEmail(user.getEmail());
			this.setCreateTime(user.getCreateTime());
			this.setLastUpdateTime(user.getLastUpdateTime());
		}
	}

	private Set<Role> roles = new HashSet<>();

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	
	
	
}
